if not None:
    print('1')

str = r'''
            {% if request.user|has__delete__permission %}
            <a style="padding:2px;cursor:pointer;color:#409eff" onclick="deleteItem({})">删除</a>
            {% endif %}
            '''.format('1111')
print(str)